<template>
  <div>
    <div class="weekend-title">周末去哪儿</div>
    <!-- 推荐列表 -->
    <ul>
      <li class="item border-bottom" v-for="item in weekendList" :key="item.id">
        <img class="item-img" :src="item.imgUrl" />
        <div class="item-info-wrapper">
          <p class="item-info-title">{{ item.title }}</p>
          <p class="item-info-desc">{{ item.desc }}</p>
        </div>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  name: "Weekend",
  props: {
    weekendList: {
      type: Array
    }
  },
  data() {
    return {};
  }
};
</script>

<style lang="less" scoped>
@import "~@/assets/styles/mixins.less";
.weekend-title {
  height: 0.8rem;
  margin-top: 0.1rem;
  line-height: 0.8rem;
  background-color: #eee;
  text-indent: 0.2rem;
}
.item {
  display: flex;
  flex-direction: column;
  padding: 0.2rem;
  &-img {
    width: 100%;
  }

  &-info-wrapper {
    flex: 1;
    min-width: 0;
  }
  &-info-title {
    padding-top: 0.2rem;
    line-height: 0.54rem;
    font-size: 0.32rem;
    font-weight: 700;
    .text-hidden();
  }
  &-info-desc {
    line-height: 0.4rem;
    color: #ccc;
    .text-hidden();
  }
}
</style>
